package com.mune.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mune.common.utils.PageUtils;
import com.mune.gulimall.member.entity.MemberEntity;
import com.mune.gulimall.member.exception.PhoneExistException;
import com.mune.gulimall.member.exception.UserNameExistException;
import com.mune.gulimall.member.vo.MemberLoginVo;
import com.mune.gulimall.member.vo.UserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author mune
 * @email 1356008591@qq.com
 * @date 2020-07-29 10:06:25
 */
public interface MemberService extends IService<MemberEntity> {

  PageUtils queryPage(Map<String, Object> params);

  void register(UserRegisterVo userRegisterVo) throws PhoneExistException, UserNameExistException;

  void checkPhoneUnique(String Phone) throws PhoneExistException;

  void checkUserNameUnique(String userName) throws UserNameExistException;

  MemberEntity login(MemberLoginVo vo);
}

